package com.jianyushe.gof23.learncode.creationalpattern.builder;

/**
 * @author Create by Alvin
 * @Description TODO
 * @date 2021-10-13 14:16
 */
public class Airship {
    private Engine engine;
    private OrbitalModule orbitalModule;
    private EscapeTower escapeTower;

    public Engine getEngine() {
        return engine;
    }

    public void setEngine(Engine engine) {
        this.engine = engine;
    }

    public OrbitalModule getOrbitalModule() {
        return orbitalModule;
    }

    public void setOrbitalModule(OrbitalModule orbitalModule) {
        this.orbitalModule = orbitalModule;
    }

    public EscapeTower getEscapeTower() {
        return escapeTower;
    }

    public void setEscapeTower(EscapeTower escapeTower) {
        this.escapeTower = escapeTower;
    }
}

class Engine{
    public String name;

    public Engine(String name) {
        this.name = name;
    }

    public Engine() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

class OrbitalModule{
    public String name;

    public OrbitalModule() {
    }

    public OrbitalModule(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

class EscapeTower{
    public String name;

    public EscapeTower() {
    }

    public EscapeTower(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}